Spring Boot/Spring MCQs Sample Test,Sample questions

Question:
 Declaring bean form object properties can be done using:-

1. PropertyPathFactoryBean

2.util:constant

3.None of the mentioned

4.All of the mentioned

Posted Date:-2022-02-11 09:20:46


Question:
 Which attribute is used to specify classname of the bean?

1.name

2.id

3.class

4.constructor-args

Posted Date:-2022-02-11 09:19:30


Question:
Method used to process bean before initialization callback

1.scope

2. postProcessAfterInitialization()

3.postProcessBeforeInitialization()

4.it's own constructor

Posted Date:-2022-02-11 10:32:01


Question:
Method used to process bean before initialization callback

1.scope

2.postProcessAfterInitialization

3.postProcessBeforeInitialization()

4. it's own constructor

Posted Date:-2022-02-11 10:37:31


Question:
What are the ways to create custom Property Editors?

1. implement PropertyEditor interface

2.extend PropertyEditorSupport Class

3.none of the mentioned

4.all of the mentioned

Posted Date:-2022-02-11 09:22:03


Question:
Which attribute is used to set the scope of the bean?

1.setScope

2.scope

3.getScope

4.none of the mentioned

Posted Date:-2022-02-11 10:35:55


Question:
Which attribute is used to set the scope of the bean?

1.setScope

2.scope

3.getScope

4.None of the mentioned

Posted Date:-2022-02-11 10:39:08


Question:
Which method is used to gracefully shutdown all the bean processes after closing the spring container?

1.shutdownHook

2.destory method

3.none of the mentioned

4.all of the mentioned

Posted Date:-2022-02-11 09:17:55


Question:
Which package is used for periodic work

1.java.lang.Thread

2.java.util.TimerTask

3.java.util.Timer

4.java.util.concurrent

Posted Date:-2022-02-11 10:30:35


Question:
Which tag is also allowed by static field?

1.util:constant

2.list

3.set

4.constructor-args

Posted Date:-2022-02-11 10:40:53


More MCQS

  1. Spring Boot Common Test
  2. Spring Boot - Bootstrapping
  3. Spring Boot - Logging
  4. Spring Boot - Application Properties
  5. Spring Boot - RESTful Web Services
  6. Spring Boot - Exception Handling
  7. Spring Boot - Interceptor
  8. Spring Boot - File Handling
  9. Spring Boot - CORS
  10. Spring Boot - Internationalization
  11. Spring Boot - Scheduling
  12. Spring MCQs
  13. SPRING BOOT MCQ QUESTIONS
  14. Spring MVC MCQ QUESTIONS AND ANSWER
  15. Spring Cloud MCQ QUESTIONS AND ANSWER
  16. Spring WebFlux MCQ OUESTIONS AND ANSWER
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!